package com.iqik.sc.ns.config;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class AuthCodeControllerHandler {

    public static String createCodeBlockHandler(String email, BlockException blockException) {
        System.out.println("block handler: create code on email [" + email + "]");
        return "false";
    }

    public static String createCodeFallback(String email) {
        System.out.println("Fallback handler: create code on email [" + email + "]");
        return "false";
    }

    public static String verityCodeBlockHandler(String email, String code, BlockException blockException) {
        System.out.println("block handler: verity code [" + code + "] on email [" + email + "]");
        return "1";
    }

    public static String verityCodeFallback(String email, String code) {
        System.out.println("Fallback handler: verity code [" + code + "] on email [" + email + "]");
        return "1";
    }
}
